package com.by.controller;

import com.by.bean.QueryReturnsRefunds;
import com.by.common.core.bean.PageBean;
import com.by.common.core.bean.ResultBean;
import com.by.common.core.controller.BaseController;
import com.by.common.core.utils.MapUtils;
import com.by.service.ReturnsRefundsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/order")
@Api(tags = "退货退款管理")
@Slf4j
public class ReturnsRefundsController extends BaseController {

    @Autowired
    ReturnsRefundsService returnsRefundsService;
    @PostMapping("/select")
    @ApiOperation("查询退货退款单")
    public ResultBean<PageBean> query(@RequestBody QueryReturnsRefunds refunds){
          PageBean bean=  returnsRefundsService.queryRefunds(refunds);
        return success("查询退货退款单",bean);
    }
}
